<%@page import="com.ym.b2b.cache.configcache.WebAppConfig"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="b" uri="/b2b-tags"%>
<link href="<c:url value="/views/jsp/product/lib/allproducts.css" />" rel="stylesheet" type="text/css">
<b:showProductCategory outResponseAttrName="allType" />
<div class="allsort sortwidth">
  <!--分类左边开始-->
<div class="fl">
<c:forEach var="type" items="${allType.data.type }" varStatus="varstatus" >
<c:if test="${varstatus.index%2==0 }">
<div class="alonesort" style="border: 0px solid #ccc;">
	<div class="mt">
		<h3>
			<a href="#">${type.productTypeName }</a>
		</h3>
	</div>
	<div class="mc">
			<c:forEach var="childType" items="${type.emBProductTypeList }">
	            <dl>
	                <dt><a href="<%=request.getContextPath() %>/product/searchProduct.s?productTypeCode=${childType.productTypeCode}" >${childType.productTypeName } </a></dt>
                	<c:if test="${not empty childType.emBProductTypeList}" >
						<dd>
						<c:forEach var="childType2" items="${childType.emBProductTypeList }"  >
							<em><a href="<%=request.getContextPath() %>/product/searchProduct.s?productTypeCode=${childType2.productTypeCode}" >${childType2.productTypeName } </a></em>
						</c:forEach> 
						</dd>
					</c:if>
	            </dl>
             </c:forEach>
    </div>
</div>
</c:if>
</c:forEach>
 </div>
 
 <div class="fl">
<c:forEach var="type" items="${allType.data.type }" varStatus="varstatus" >
<c:if test="${varstatus.index%2==1 }">
<div class="alonesort" style="border: 0px solid #ccc;">
	<div class="mt">
		<h3>
			<a href="#">${type.productTypeName }</a>
		</h3>
	</div>
	<div class="mc">
			<c:forEach var="childType" items="${type.emBProductTypeList }">
	            <dl>
	                <dt><a href="<%=request.getContextPath() %>/product/searchProduct.s?productTypeCode=${childType.productTypeCode}" >${childType.productTypeName } </a></dt>
	                <c:if test="${not empty childType.emBProductTypeList}" >
						<dd>
						<c:forEach var="childType2" items="${childType.emBProductTypeList }"  >
							<em><a href="<%=request.getContextPath() %>/product/searchProduct.s?productTypeCode=${childType2.productTypeCode}" >${childType2.productTypeName } </a></em>
						</c:forEach> 
						</dd>
					</c:if>
	            </dl>
             </c:forEach>
    </div>
</div>
</c:if>
</c:forEach>
 </div>
 <!--fr end-->
   <span class="clr"></span>
</div>

<script>
$(".alonesort").mouseover(function(e){
    $(this).css({"border": "3px solid rgb(255, 233, 202)","background-color": "rgb(255, 250, 236)"});
});
$(".alonesort").mouseleave(function(e){
	 $(this).css({"border": "0px solid #ccc","background-color": "white"});
});
</script>